<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" 	prefix="s"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>示界港管理平台</title>
<%@ include file="/jsp/common/common_script.jsp"%>
<style type="text/css">
</style>
<script type="text/javascript">
 var g_userId = '<%=session.getAttribute("userId")%>';
 var g_bAdmin = '<%=session.getAttribute("isAdmin")%>';
</script>
</head>
<body>
<table class="queryTable" >
	<tr>
		<td class="queryTitle" width="68px">模版大分类</td>
		<td class="queryContent">
			<select id="queryTmplType" name="queryTmplType" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 100px" ></select>
		</td>
		<td class="queryTitle" width="68px">模版中分类</td>
		<td class="queryContent">
			<select id="queryTmplType2" name="queryTmplType2" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 100px" ></select>
		</td>
		<td class="queryTitle" width="68px">模版小分类</td>
		<td class="queryContent">
			<select id="queryTmplType3" name="queryTmplType3" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 100px" ></select>
		</td>
		<td class="queryTitle" width="68px">发布状态</td>
		<td class="queryContent">
		    <select id="queryPublish" name="queryPublish" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 100px">
	    		<option value="" selected>[不限]</option>
				<option value="0">未发布</option>
				<option value="1">已发布</option>
			</select> 
		</td>
		<td class="queryTitle" width="68px">设计师:</td>
		<td class="queryContent">
			<select id="queryUserId" class="easyui-combobox" panelHight="400px" editable="false" style="width: 120px"></select>
		</td>
	</tr>
	<tr>
		<td class="queryTitle" width="68px">起始日期</td>
		<td class="queryContent">
			<input id="queryDateStart" class="easyui-datebox" style="width:100px">
		</td>
		<td class="queryTitle" width="68px">截止日期</td>
		<td class="queryContent">
			<input id="queryDateEnd" class="easyui-datebox" style="width:100px">
		</td>
		<td class="queryTitle" width="80px">设计模版名称</td>
		<td class="queryContent">
			<input type="text" id="queryDocName" style="width:100px;" />
		</td>
		<td class="queryTitle" width="80px">统一模板ID</td>
		<td class="queryContent">
			<input type="text" id="uniTmplId" style="width:100px;"/>
		</td>
		<td class="queryBtnTd" colspan="2">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"  onclick="doQuery()">查询</a>
		</td>
	</tr>
</table>

<table id="tmplGrid"></table>

<div id="orderDlg" class="easyui-window" title="" closed="true" style="width:600px; height:auto;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="orderForm"  method="POST">
			<s:hidden name="mapId" id="mapId"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="orderTable">
				<tr>	
					<td class="queryTitle" width="80px">显示顺序</td>
					<td class="queryContent">
						<s:textfield id="order" name="order" cssClass="inputText easyui-validatebox" data-options="" onkeyup="value=value.replace(/[^\d]/gi,'')" cssStyle="width:250px"/>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="orderBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doUpdOrder()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelUpdOrder()">取消</a>
    </div>
</div>

<div id="viewDlg" class="easyui-window" title="" closed="true"
		style="width: 428px; height: auto; text-align: center; background: #fff;">
		<div border="false" style="padding-left: 20px;">
			<form id="notifyForm" method="POST">
				<s:hidden name="viewId" id="viewId" />
				<table border="0" class="queryTable" width="95%" height="auto"
					style="margin-bottom: 0px;" id="viewTable">
					<tr>
						<td class="queryTitle" width="120px">应用次数<span style="color:red">[显示用]</span></td>
						<td class="queryContent">
							<s:textfield id="viewContent" name="viewContent" cssClass="inputText easyui-validatebox"
								data-options="" onkeyup="value=value.replace(/[^\d]/gi,'')" cssStyle="width:200px" />
						</td>
					</tr>
				</table>
			</form>
		</div>
		<div
			style="clear: both; padding-top: 10px; margin-bottom: 10px; text-align: center;"
			id="viewBtn">
			<a class="easyui-linkbutton" iconCls="icon-ok"
				href="javascript:void(0)" onclick="doEditView()">修改</a> <a
				class="easyui-linkbutton" iconCls="icon-cancel"
				href="javascript:void(0)" onclick="cancleEditView()">取消</a>
		</div>
	</div>

<div id="refreshDlg" class="easyui-window" title="" closed="true" style="width:430px; height:180px;text-align:center; background: #fff;">
  <div border="false" style="padding-left:10px;padding-right:10px">
    <form id="refreshForm"  method="POST">
      <table border="0" class="queryTable" width="96%" height="auto" style="margin-bottom:0px;" id="refreshTable">
        <tr>
          <td class="queryTitle" width="100px">模版分类</td>
          <td class="queryContent"  colspan="6">
            <select id="refreshType" name="refreshType" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 200px" >
              <option value="1" selected>单页</option>
              <option value="2">多页</option>
              <option value="4">印品</option>
              <option value="6">社交媒体</option>
              <option value="7">电商</option>
              <option value="8">微商</option>
              <option value="1010">LOGO商品</option>
              <option value="1011">营销商品</option>
              <option value="1020">视频模板</option>
              <option value="1030">视频背景</option>
            </select>
          </td>
      </table>
    </form>
  </div>
  <div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="refreshBtn">
    <a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doRefresh()">确定刷新</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelRefresh()">取消</a>
    </div>
</div>

<div id="batchDlg" class="easyui-window" title="" closed="true" style="width:430px; height:290px;text-align:center; background: #fff;">
  <div border="false" style="padding-left:10px;padding-right:10px">
    <form id="batchForm"  method="POST">
      <table border="0" class="queryTable" width="96%" height="auto" style="margin-bottom:0px;" id="batchTable">
        <tr>
          <td class="queryTitle" width="100px">模版大分类</td>
          <td class="queryContent"  colspan="3">
            <select id="batchType" name="batchType" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 150px" ></select>
          </td>
        </tr>
        <tr>
          <td class="queryTitle" width="100px">模版中分类</td>
          <td class="queryContent"  colspan="3">
            <select id="batchType2" name="batchType2" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 150px" ></select>
            <span style="color:red">(对PPT无效)</span>
          </td>
        </tr>
        <tr>
          <td class="queryTitle" width="100px">模版小分类</td>
          <td class="queryContent"  colspan="3">
            <select id="batchType3" name="batchType3" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 150px" ></select>
            <span style="color:red">(对PPT无效)</span>
          </td>
        </tr>
        <tr>
          <td class="queryTitle" width="100px">基数</td>
          <td class="queryContent" colspan="3">
            <select id="batchBaseCnt" name="batchBaseCnt" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 150px" >
              <option value="1" selected>实际应用次数</option>
              <option value="2">当前显示应用次数</option>
            </select>
          </td>
        </tr>
        <tr>
		  <td class="queryTitle" width="100px">倍数<span style="color:red">(1,20]</span></td>
		  <td class="queryContent" colspan="3">
		    <s:textfield id="batchMult" name="batchMult" cssClass="inputText easyui-validatebox"
		      data-options="" onkeyup="value=value.replace(/[^\d]/gi,'')" cssStyle="width:100px" />
		    <span style="color:red">(结果=基数*倍数)</span>
		  </td>
		</tr>
      </table>
    </form>
  </div>
  <div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="batchBtn">
    <a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doBatchUpd()">确定批量更新</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelBatchUpd()">取消</a>
    </div>
</div>

<div id="uDocDlg" class="easyui-window" closed="true" style="width:1100px; height:auto;text-align:center; background: #fff;">
	<form id="udocForm"  method="POST">
	<table id="uDocTable" class="queryTable" style="margin: 0px">
		<tr>
			<td class="queryTitle" width="100px" rowspan="2"><span style="color:red;">模板ID:</span><span id="designId"></span><span style="color:red;"><br/>分类:</span><span id="topType"></span></td>
			<td class="queryTitle" width="50px">文档ID</td>
			<td class="queryContent">
				<input class="inputText" type="text" id="queryDocId" style="width: 100px;" />
			</td>
			<td class="queryTitle" width="65px">用户属性:</td>
			<td class="queryContent">
				<select id="testFlg" class="easyui-combobox" panelHeight="auto" style="width:148px;" editTable="false"></select>
			</td>
			<td class="queryTitle" width="65px">买单状态:</td>
			<td class="queryContent">
				<select id="payState" class="easyui-combobox" panelHeight="auto" style="width:100px;" editTable="false"></select>
			</td>
		<tr/>
		<tr>
			<td class="queryTitle" width="80px"></td>
			<td class="queryTitle" width="50px">用户ID</td>
			<td class="queryContent">
				<input class="inputText" type="text" id="queryDocUserId" style="width: 100px;" />
			</td>
			<td class="queryTitle" width="80px">用户手机号</td>
			<td class="queryContent">
				<input class="inputText" type="text" id="queryMobile" />
			</td>
			<td class="queryBtnTd" colspan="2">
				<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"  onclick="doQuery3()">查询</a>
			</td>
		</tr>
	</table>
	</form>
	<div border="false" style="margin-top:0px;">
		<s:hidden name="disId" id="disId"></s:hidden>
		<table id="uDocGrid"></table>
	</div>
</div>

<!-- 视频播放 -->
<div id="playUserVideoDlg" class="easyui-window" closed="true" style="width:550px; height: 550px;background: #fafafa;">
	<div class="easyui-layout" fit="true">
         <div data-options="region:'center',title:'视频资源',split:true" style="height:350px;" id="userViderUrl">
         </div>
         <div data-options="region:'south',title:'封面图',split:true" style="height:195px;" id="userVideoThumb"></div>
     </div>
</div>

<script type="text/javascript" src="${ctx}/js/yjx/docStatsMgr.js"></script>
<script type="text/javascript" src="${ctx}/js/encrypt/encrypted-min.js"></script>
</body>
</html>
